package com.loongtech.bi.manager.game;

import com.loongtech.bi.entity.game.EntityRemainCurrency;
import com.loongtech.core.jpa.manager.ManagerQueryCacheBase;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

@Service
public class RemainCurrencyManager extends ManagerQueryCacheBase<EntityRemainCurrency> {
	private static final long serialVersionUID = 1L;
	
	public List<EntityRemainCurrency> getData(Date dayStart, Date dayEnd,String queryPlatform, String queryChannel, String queryServer,String currencytype) {
		return findByQuery("from EntityRemainCurrency where day>=:dayStart and day<=:dayEnd and platformid = '"+queryPlatform+"' and channelid = '"+queryChannel+"' and serverid = '"+queryServer+"' and currencytype = "+currencytype,"dayStart", dayStart, "dayEnd", dayEnd);
	}
}
